<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>vue实例生命周期函数</title>
		<script src="js/vue.js"></script>
	</head>
	<body>
		<div id = "app"></div>
	</body>
	<script>
		//生命周期函数就是vue实例在某一个时间点会自动执行的函数
		var vm = new Vue({
			beforeCreate: function(){
				console.log("beforeCreate");
			},
			created: function(){
				console.log("created");
				},
				//...根据声明周期图触发
			})	
	</script>
</html>